package com.bankLogisticsSys.util;

import java.util.Arrays;

public class ByteTest {

	public static void main(String[] args) {
		  String str = "Hello world!";
		  // string转byte
		  byte[] bs = str.getBytes();
		  System.out.println(bs.toString());
		  
		  // byte转string
		  String str2 = new String(bs);
		  System.out.println(str2);
	}

}
